package com.xy.annotaion.handler.aop.creator;

import com.xy.annotaion.handler.aop.advisor.TestAdvisor;
import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.aop.TargetSource;
import org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator;
import org.springframework.beans.BeansException;

/**
 * open will error!
 *
 * @author Dell
 */
//@Component
@Deprecated
public class TestAutoProxyCreator extends AbstractAutoProxyCreator implements LogService {
    @Override
    protected Object[] getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource customTargetSource) throws BeansException {
        log(beanClass);
        log(beanName);
        log(customTargetSource);
        return new Object[]{new TestAdvisor()};
    }
}
